//浏览器 服务器端
let path = require('path');
module.exports = {
	mode: 'development',//开发模式
	module:{
		rules:[
			{
				test:/\.js$/,
				loader: 'babel-loader',
				exclude: /node_modules/,
				options: {
					presets: [
						"@babel/preset-env",
						"@babel/preset-react"
					],
					plugins: [
						"@babel/plugin-proposal-class-properties"
					]
				}
			}
		]
	}
}